using System;
using System.Collections.Generic;
using System.Text;

using Open.Data.Persistence;


namespace Open.Data.Persistence.Testing
{
    [PrimaryKeys("CustomerId, AddressId")]
    public class CustomerAddress : Table
    {
        private int _CustomerId;
        private int _AddressId;

        [ForeignKey(typeof(Customer))]
        public int CustomerId
        {
            get 
            { 
                return _CustomerId; 
            }
            set 
            { 
                _CustomerId = value;
            }
        }

        [ForeignKey(typeof(Address))]
        public int AddressId
        {
            get
            {
                return _AddressId;
            }
            set
            {
                _AddressId = value;
            }
        }
    }
}
